package com.woniuxy.oldmanapi.mapper;
import java.util.List;
import com.woniuxy.oldmanapi.entity.Cost;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface CostMapper extends Mapper<Cost> {
    List<Cost> selectCostByName(String cname);
    @Insert("insert into cost (type,name) values(#{type},#{name})")
    void insertCost(@Param("type") Integer type,@Param("name") String name);
}